package cn.rengy.web.framework.shiro.token;

import org.apache.shiro.authc.AuthenticationToken;
/**
 * uniapp的token自动登录
 * @author rengy
 *
 */
public class AppAccsessToken implements AuthenticationToken{
	private static final long serialVersionUID = 7457613418720655133L;
	private String token;
	
	
	public AppAccsessToken(String token) {
		super();
		this.token = token;
	}
	@Override
	public Object getPrincipal() {
		return token;
	}
	@Override
	public Object getCredentials() {
		return token;
	}
	public String getToken() {
		return token;
	}
	public void setToken(String token) {
		this.token = token;
	}
	
	
}
